﻿using System;
using UnityEngine;

public class Action2014 : GameAction {
    private ActionResult actionResult;

    public Action2014 ( )
        : base(2014) {
    }

    protected override void SendParameter (NetWriter writer, ActionParam actionParam) {
        writer.writeByte("Status", actionParam.Get<byte>("status"));
    }

    protected override void DecodePackage (NetReader reader) {
        actionResult = new ActionResult( );
        actionResult["UserId"] = reader.getInt( );
        actionResult["Status"] = reader.getByte( );
    }

    public override ActionResult GetResponseData ( ) {
        return actionResult;
    }
}
